#include <cstdio>

int main() {
    const int MAX = 3;
    int num[MAX+10] = {0};
    int n, count = 0;
    scanf("%d", &n);

    while (n != 0) {
        num[count++] = n % 10;
        n /= 10;
    }
    for (int i = 2; i >= 0; i--) {
        if (num[i] != 0) {
            for (int j = 1; j <= num[i]; j++) {
                if (i == 0) {
                    printf("%d", j);
                } else if (i == 1) {
                    printf("S");
                } else if (i == 2) {
                    printf("B");
                }
            }
        }
    }
    printf("\n");

    return 0;
}